package smallDemend;

import java.util.Scanner;

public class AdjustCharString {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个字符串:");
        String user1 = sc.nextLine();
        System.out.println("请输入第二个字符串:");
        String user2 = sc.nextLine();
        char c='n';
        c = user1.charAt(0);
        int length = user1.length();
        char[] chars = new char[length];
        for (int i = 0; i < user1.length(); i++) {
                c=user1.charAt(i);
                chars[i]=user1.charAt(i);
        }
        for (int i = 0; i < (user1.length() + 1); i++) {
            char temp=chars[0];
            chars[0]=chars[user1.length()];
            chars[user1.length()]=temp;
            StringBuilder sb=new StringBuilder();

        }

    }
}
